import date


class DataVerify:
    def __init__(self):
        pass

    def phone(self, phone):
        phone_pattern = re.compile(r'^(13\d|14[5|7]|15\d|166|17[3|6|7]|18\d)\d{8}$')
        if phone_pattern.match(phoneNum):
            return True
        else:
            return False

    def email(self, email):
        email_pattern = re.compile(r'^[0-9a-zA-Z_]{0,19}@[0-9a-zA-Z]{1,13}\.[com,cn,net]{1,3}$')
        if email_pattern.match(email):
            return True
        else:
            return False

    def password(password):
        pwd_pattern = re.compile(r'^[0-9A-Za-z]{6,16}$')
        if pwd_pattern.match(password):
            return True
        else:
            return False

    def sexy(self, sexy):
        if sexy in ['男', '女']:
            return True
        else:
            return False
